package org.jeecg.modules.golf.question.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.golf.question.entity.MyQuestionPlan;
import org.jeecg.modules.golf.question.entity.Question;
import org.jeecg.modules.golf.question.entity.QuestionTypeMapping;
import org.jeecg.modules.golf.tag.entity.TagMapping;

import java.util.Collection;
import java.util.List;

/**
 * @Description: 问题
 * @Author: jeecg-boot
 * @Date:   2020-10-18
 * @Version: V1.0
 */
 public interface IQuestionService extends IService<Question> {

	/**
	 * 添加一对多
	 *
	 */
	 void saveMain(Question question,List<QuestionTypeMapping> questionTypeMappingList,List<TagMapping> tagMappingList,List<MyQuestionPlan> myQuestionPlanList) ;

	/**
	 * 修改一对多
	 *
	 */
	 void updateMain(Question question,List<QuestionTypeMapping> questionTypeMappingList,List<TagMapping> tagMappingList,List<MyQuestionPlan> myQuestionPlanList);


	/**
	 * 完成某某问题
	 * @param questionId
	 * @return
	 */
	boolean done(Long questionId);

	/**
	 * 删除一对多
	 */
	 void delMain (Long id);

	/**
	 * 批量删除一对多
	 */
	 void delBatchMain (Collection<Long> idList);

}

